package com.ruicar.afs.cloud.risk.tortoise.feign;

import com.ruicar.afs.cloud.common.core.feign.annotations.AfsFeignClear;
import com.ruicar.afs.cloud.risk.tortoise.dto.request.GwtTortoiseStartRequest;
import com.ruicar.afs.cloud.risk.tortoise.dto.response.GwtTortoiseStartResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;


/**
 * @Description 玄武进单发起调用
 * @Author Peng Jinbo
 * @Date 2020/07/21 15:45
 */
@FeignClient(name = "gwt-tortoise" , url = "${com.greatwall.systems.tortoise.uri}")
public interface GwtTortoiseFeign {

    /**
     * Author Peng Jinbo
     * Start gwt tortoise start response
     *
     * @param startRequest start request
     * @return the gwt tortoise start response
     */
    @PostMapping(value = "start/approvestart" , consumes = MediaType.APPLICATION_JSON_VALUE)
    @AfsFeignClear(true)
    GwtTortoiseStartResponse start(@RequestBody GwtTortoiseStartRequest startRequest);

}
